package orm;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractDiscount entity provides the base persistence definition of the
 * Discount entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractDiscount implements java.io.Serializable {

	// Fields

	private Integer discountId;
	private Float rate;
	private Set itemDiscounts = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractDiscount() {
	}

	/** minimal constructor */
	public AbstractDiscount(Float rate) {
		this.rate = rate;
	}

	/** full constructor */
	public AbstractDiscount(Float rate, Set itemDiscounts) {
		this.rate = rate;
		this.itemDiscounts = itemDiscounts;
	}

	// Property accessors

	public Integer getDiscountId() {
		return this.discountId;
	}

	public void setDiscountId(Integer discountId) {
		this.discountId = discountId;
	}

	public Float getRate() {
		return this.rate;
	}

	public void setRate(Float rate) {
		this.rate = rate;
	}

	public Set getItemDiscounts() {
		return this.itemDiscounts;
	}

	public void setItemDiscounts(Set itemDiscounts) {
		this.itemDiscounts = itemDiscounts;
	}

}